#include <bits/stdc++.h>
using namespace std;
int main() {
	ios::sync_with_stdio(0);
	cin.tie(0);
	const char c1 = '*';
	const char c2 = ' ';
	for (int i = 1; i <= 3; i++) {
		for (int j = 1; j <= 4-i; j++) {
			cout <<" ";
		}
		for (int j = 1; j <= 2*i-1; j++) {
			cout << "*";
		}
		cout<<endl;
	}
	for (int i = 2; i >= 1; i--) {
		for (int j = 1; j <= 4-i; j++) {
			cout << " ";
		}
		for (int j = 1; j <= 2*i-1; j++) {
			cout << "*";
		}
		if(i==2){
			cout<<endl;
			//TODO
		}
		
	}
	return 0;
}
//1 1
//2 3
//3 5

